<#import "template.ftl" as layout>
<@layout.registrationLayout; section>
    <#if section = "header">
        验证码二次认证
    <#elseif section = "form">

      <div id="kc-form">
        <div id="kc-form-wrapper">
          <form id="kc-form-login" action="${url.loginAction}" onsubmit="saveBtn.disabled = true; return true;" method="post">

              <div class="${properties.kcFormGroupClass!} row">
                  <label class="${properties.kcLabelClass!}">验证码已发送到: ${phoneNumber!}</label>
              </div>

            <div class="${properties.kcFormGroupClass!} row">
              <label for="code" class="${properties.kcLabelClass!}">输入验证码</label>
              <input tabindex="1" id="smsCode" class="${properties.kcInputClass!}" name="smsCode"
                     type="text" autofocus
                     autocomplete="off"/>
            </div>
            <div id="kc-form-buttons" class="${properties.kcFormGroupClass!}">
              <input type="hidden" id="id-hidden-input" name="credentialId"
                     <#if auth.selectedCredential?has_content>value="${auth.selectedCredential}"</#if>/>
              <input tabindex="2"
                     class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}"
                     name="saveBtn" id="kc-login" type="submit" value="提交"/>
            </div>
          </form>
        </div>
      </div>
    </#if>
</@layout.registrationLayout>
